all: yacp

lex.yy.c: yacp.lex
	lex yacp.lex

y.tab.c: yacp.y
	yacc -v yacp.y

yacp: lex.yy.c y.tab.c
	g++ -o yacp y.tab.c -lfl

clean:
	rm -f lex.yy.c yacp y.output y.tab.c saida.cpp exemplos/*.yay
